package com.yksj.healthtalk.ui.salon;

import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;

import com.yksj.healthtalk.comm.BaseFragmentActivity;
import com.yksj.healthtalk.ui.R;
/**
 * 沙龙主页
 * @author jack_tang
 *
 */
public class SalonMainUIActivity extends BaseFragmentActivity {
	String mGroupName;
	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.salon_main);
		if (getIntent().hasExtra("groupName")) {
			mGroupName = getIntent().getExtras().getString("groupName");
		}
		SalonCollectionMainFragment activity = new SalonCollectionMainFragment();
		FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
		Bundle bundle = new Bundle();
		bundle.putString("groupName", mGroupName);
		activity.setArguments(bundle);
		transaction.replace(R.id.fragment, activity);
		transaction.commit();
	}

}
